package org.jtb.quickr;

/**
 * Permissions. This class is used to encapsulates the valid permissions
 * values for Flickr services.
 */
public class Permissions {
    /**
     * Read permission.
     */
    public static Permissions READ = new Permissions("read");
    /**
     * Write (and read) permission.
     */
    public static Permissions WRITE = new Permissions("write");
    /**
     * Delete (and write, read) permission.
     */
    public static Permissions DELETE = new Permissions("delete");
    /**
     * No permission.
     */
    // not sure how this is used
    public static Permissions NONE = new Permissions("none");
    
    private String permString;
    
    /**
     * 
     */
    private Permissions(String permString) {
        this.permString = permString;
    }
    
    /**
     * Get string representation of the permissions.
     * @return The permission value as a string.
     */
    public String toString() {
        return permString;
    }
    
}
